/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ivanbiz.quiz;

import java.util.List;

/**
 *
 * @author User
 */
public interface AnswerService {
    public void saveAnswer(Answer answer)throws Exception;
    public void deleteAnswer(Answer answer)throws Exception;
    public void updateAnswer(Answer answer)throws Exception;
    public List loadAll()throws Exception;
    public Answer loadById(long id)throws Exception;
    public void saveQuestionAnswer(Question question,List list)throws Exception;
    public List getQuestionAndAnswerByTitle(long titleId)throws Exception;
    public List getQuestionAndAnswerByQuestion(long questionId)throws Exception;
    public void updateQuestionAnswer(Question question,List list)throws Exception;
    public void deleteByQuestion(long questionId)throws Exception;
     public void deleteByTitle(long titleId)throws Exception;
   
}
